namespace Jumpton.SFA.Server.Entity
{
    using System;
    using System.Collections.Generic;
    using System.Text;
    using Jumpton.Persistent;
    using System.Data;
    using System.Runtime.Serialization;


    [System.SerializableAttribute()]
    [Map("ROUTES")]
    public class ROUTES : ObjectRow
    {

        public ROUTES()
        {
        }

        /// <summary>
        /// 构造函数
        /// </summary>
        /// <param name="dataRow">DataTable 中的一行数据</param>
        /// <param name="objectTable">存储当前对象的数据表格</param>
        public ROUTES(System.Data.DataRow dataRow, ObjectTable parent) :
            base(dataRow, parent)
        {
        }

        /// <summary>
        /// 供反序列化使用的构造函数
        /// </summary>
        /// <param name="info"></param>
        /// <param name="context"></param>
        protected ROUTES(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) :
            base(info, context)
        {
        }

        [Key("ID",true,true)]
        public decimal ID
        {
            get
            {
                return (System.Decimal)GetValue("ID");
            }
            set
            {
                SetValue("ID", value);
            }
        }

        [Field("USER_ID")]
        public decimal USERID
        {
            get
            {
                return (System.Decimal)GetValue("USERID");
            }
            set
            {
                SetValue("USERID", value);
            }
        }

        [Field("ROUTE_NUMBER")]
        public decimal ROUTENUMBER
        {
            get
            {
                return (System.Decimal)GetValue("ROUTENUMBER");
            }
            set
            {
                SetValue("ROUTENUMBER", value);
            }
        }

        [Field("DESCRIPTION")]
        public string DESCRIPTION
        {
            get
            {
                return (System.String)GetValue("DESCRIPTION");
            }
            set
            {
                SetValue("DESCRIPTION", value);
            }
        }

        [Field("LAST_UPDATER")]
        public string LAST_UPDATER
        {
            get
            {
                return (System.String)GetValue("LAST_UPDATER");
            }
            set
            {
                SetValue("LAST_UPDATER", value);
            }
        }

        [Field("LAST_UPDATE_TIME")]
        public decimal LAST_UPDATE_TIME
        {
            get
            {
                return (System.Decimal)GetValue("LAST_UPDATE_TIME");
            }
            set
            {
                SetValue("LAST_UPDATE_TIME", value);
            }
        }

        [Field("Route_Force")]
        public System.String ROUTEFORCE
        {
            get
            {
                return (System.String)GetValue("ROUTEFORCE");
            }
            set
            {
                SetValue("ROUTEFORCE", value);
            }
        }

        [Field("Active")]
        public bool Active
        {
            get
            {
                return (System.Boolean)GetValue("Active");
            }
            set
            {
                SetValue("Active", value);
            }
        }

        [Field("VALID_DATE")]
        public decimal VALIDDATE
        {
            get
            {
                return (System.Decimal)GetValue("VALIDDATE");
            }
            set
            {
                SetValue("VALIDDATE", value);
            }
        }
    }
}
